Complete sample code to send an email:
<? php
$url = 'https://messagingapis.paylite.net/api/sms/send';
$ch = curl_init($url);
$jsonData = '{
"ApiKey": "Your API Key",
"CountryCode": "Country Code",
"ToNumber": "To Mobile Number",
"TextMessage": "text Message Content",
}';
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
$result = curl_exec($ch);
echo($result);
?>